package vetAdmin.tableModels;

import java.util.ArrayList;
import java.util.List;
import java.util.Observer;

import javax.swing.event.TableModelListener;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableModel;

public class ClientesJTableModel implements TableModel {
	
    
	private ArrayList<TableModelListener> listeners = new ArrayList<TableModelListener>();


	@Override
	public void addTableModelListener(TableModelListener l) {
		listeners.add(l);
		
	}

	@Override
	public Class<?> getColumnClass(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isCellEditable(int arg0, int arg1) {
		return false;
	}

	@Override
	public void removeTableModelListener(TableModelListener l) {
		listeners.remove(l);
		
	}

	@Override
	public void setValueAt(Object arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public int getColumnCount() {
		return 1;
	}

	@Override
	public String getColumnName(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getRowCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Object getValueAt(int arg0, int arg1) {
		// TODO Auto-generated method stub
		return null;
	}
	
	
		
	
}



/*	
	
        //TODO Accesors
	public List<String[]> clientes = new ArrayList<String[]>();
	private String[] columnNames= {"Apellido y Nombre"};
		
	@Override
	public int getColumnCount() {
		return 1;
	}

	@Override
	public int getRowCount() {
		return clientes.size();
	}
	
	public void add(String [] register) {	
		clientes.add(register);
		
		
	}
	

	@Override
	public String getValueAt(int columnIndex, int rowIndex) {

		String resultado = clientes.get(columnIndex)[rowIndex + 1]; // le sumo 1 para que muestre los nombres: |ID|NOMBRE|

		return resultado;
	}
	
	
	public String getColumnName(int row){
		
		return columnNames[row];
		
	}
	
	*/

